package cn.zqy.demo2.day06.ThreadSafe;

public class Demo03TicketSynchroMethod {
    public static void main(String[] args) {
        Runnable run = new RunnableTicketSynchroMethodImpl();

        Thread th1 = new Thread(run);
        Thread th2 = new Thread(run);
        Thread th3 = new Thread(run);

        th1.start();
        th2.start();
        th3.start();
    }
}
